import sys
sys.path.append("/Users/liyishan/myPythonProjects/python-leetcode")
from node.ListNode import ListNode
def middleNode(head : ListNode)-> ListNode:
    slow  = head
    fast = head
    while fast and fast.next :
        slow = slow.next
        fast = fast.next.next
    return slow